POV-Ray : Newsgroups : povray.advanced-users : Assemble Partial Output : Re: Assemble Partial Output Server Time
3 May 2024 09:57:47 EDT (-0400)
  Re: Assemble Partial Output  
From: Warp
Date: 21 Oct 2003 17:58:03
Message: <3f95abeb@news.povray.org>
Tyken <nomail@nomail> wrote:
> So if you got a solution to this problem please post a reply.
> Thanks.

  When you make a partial render POV-Ray will actually create an image
file with headers for the complete image but will simply stop writing
to it when the partial render finishes (and if the partial render
did not start from the first line it will however be written to
the output file as if it did).

  Many image viewing/manipulation programs will take those interrupted
files as broken for this reason and will refuse to read them at all.
Some programs will read them and show what they got (and the rest they
will set as blank). Shouldn't be necessary to say that the former type
of programs will not help you with this but you will need some of the
latter type... :)

  If you are a coder type you can make a small script or program which
actually joins the image parts. This is actually extremely simple when
you use for example raw targa type as output image (+ft option). The
process to do this is as follows:

1. The first partial render targa can be taken as is (if you are creating
   a separate, joint image, you can simply copy the first targa to it).

2. For each one of the next partially rendered targa files skip 18 bytes
   from the beginning and append the rest of the file to the joint image.

  And there you are. You have a full image.

  (The reason to skip 18 bytes is because a targa file has a header of
exactly 18 bytes and when POV-Ray creates one, the image data will
immediately follow the header.)

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.